package com.info33.platform.system.service;

import java.text.ParseException;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.info33.platform.system.entity.SysAnnouncement;
import com.info33.platform.common.mvc.vo.Result;
import com.info33.platform.system.util.enums.UserTypeEnum;
import com.info33.platform.system.vo.SysAnnouncementVO;


public interface SysAnnouncementService extends IService<SysAnnouncement> {

	SysAnnouncement get(Long id,Long tenantId) throws Exception;
	
	Result<SysAnnouncement> add(SysAnnouncement sysAnnouncement) throws Exception;
	
	IPage getHisListByAuth(Long curUserId,Long tenantUserId,Long tenantId,UserTypeEnum userType,SysAnnouncement sysAnnouncement,int pageSize,int pageNum);
	
	IPage getListByAuth(Long curUserId,Long tenantUserId,Long tenantId,UserTypeEnum userType,SysAnnouncement sysAnnouncement,int pageSize,int pageNum) throws ParseException;
	
	int remove(Long id) throws Exception;
	
	Result<?> edit(SysAnnouncement sysAnnouncement) throws Exception;

	Result<?> getFiles(Long tenantId);
}
